/**
 * @type {import('webpack').Configuration}
 */
const path = require("path");
const singleEntry = {
  mode: "production",
  entry: "./src/index.js",
  output: {
    filename: "[name].js",
    path: path.resolve(__dirname, "dist"),
  },
};

const multiEntry = {
  mode: "production",
  entry: {
    entry1: "./src/index.js",
    entry2: {
      import: "./src/entry.js",
      dependOn: "entry1",
    },
  },
  output: {
    filename: "[name].js",
    path: path.resolve(__dirname, "dist"),
  },
};

module.exports = multiEntry;
